<div style="width:600px;">
{{embed form}}
</div>
<script>
$(function(){
    $.localise('ui-multiselect', {language: 'zh', path: '/static/jqmultiselect/js/locale/'});
    $("select[multiple]").multiselect({sortable: false, width: 600});
    $('input[name=is_public]').click(function(){
        if ($(this).attr('checked')){
            $('[name=systems]').parent('div.type-select').show();
        }else{
            $('[name=systems]').parent('div.type-select').hide();            
        }
    });
    if ($('input[name=is_public]').attr('checked')){
        $('[name=systems]').parent('div.type-select').show();
    }else{
        $('[name=systems]').parent('div.type-select').hide();            
    }
    
});
</script>
